#!/bin/sh

git pull origin master
git add .

echo "-------------------------"
echo "输入版本摘要"
echo "-------------------------"
read comment

git commit -m "$comment"
git push
git subtree split --prefix=UGlue/Assets/com.migu.uglue --branch upm

echo "-------------------------"
echo "输入插件版本号"
echo "-------------------------"
read ver

git tag $ver upm       
git push origin upm --tags

echo "-------------------------"
echo "按Enter键退出"
echo "-------------------------"
read name